﻿using ManageSystem.IService;
using ManageSystem.Model;
using ManageSystem.Repository;
using System.Threading.Tasks;

namespace ManageSystem.Service
{
    public class UserService: BaseService<User>, IUserService
    {

        // this class have a baseRepository(inherited from BaseService) and it's projectRepository
        public UserRepository userDal = new();

        /// <summary>
        /// 根据usernam查询用户
        /// ///<param name="username"></param>
        /// </summary>
        public async Task<User> QueryUserByUserName(string username)
        {
            return await userDal.QueryUserByUserName(username);
        }
    }
}
            